package com.version1_4.controller;

import com.version1_3.controller.RecomController1_3;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;

/**
 * Created by reeveslee on 16/4/27.
 */
@Controller
public class RecomController1_4 {
    private static final Logger LOGGER = Logger.getLogger(RecomController1_4.class);

    @Autowired
    private RecomController1_3 recomController13;

    /**
     * 调用接口：http://121.40.188.62/kuibuversion1/version1_3/recommend/getRecommendPage
     */
    @RequestMapping(value = "/version1_4/recommend/getRecommendPage", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    @ResponseBody
    public String getNewSubscriPage(HttpServletRequest request) throws UnsupportedEncodingException {
        return recomController13.getNewSubscriPage(request);
    }
}
